<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Integer Properties: main Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Integer Properties
   </div>
   <div id="projectbrief">Find the properties of integers</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="classmain-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">main Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Contains functions that check properties of integers.  
 <a href="classmain.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a0877f3b412d48b8c92fa25c4b98c2f5a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0877f3b412d48b8c92fa25c4b98c2f5a"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#a0877f3b412d48b8c92fa25c4b98c2f5a">main</a> (String[] args)</td></tr>
<tr class="memdesc:a0877f3b412d48b8c92fa25c4b98c2f5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calls the integer property functions written by group members and prints the result on screen. <br/></td></tr>
<tr class="separator:a0877f3b412d48b8c92fa25c4b98c2f5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b8a6c1cd64065f4dba14fc8e096db7f"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#a9b8a6c1cd64065f4dba14fc8e096db7f">alican_isSquare</a> (int number)</td></tr>
<tr class="memdesc:a9b8a6c1cd64065f4dba14fc8e096db7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is a perfect square.  <a href="#a9b8a6c1cd64065f4dba14fc8e096db7f">More...</a><br/></td></tr>
<tr class="separator:a9b8a6c1cd64065f4dba14fc8e096db7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd935affcb614f8aff93b02bc714d5cd"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#abd935affcb614f8aff93b02bc714d5cd">ecr_isPrime</a> (int number)</td></tr>
<tr class="memdesc:abd935affcb614f8aff93b02bc714d5cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is a prime number.  <a href="#abd935affcb614f8aff93b02bc714d5cd">More...</a><br/></td></tr>
<tr class="separator:abd935affcb614f8aff93b02bc714d5cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a450ea9a46446cb661fc24ea5a5425790"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#a450ea9a46446cb661fc24ea5a5425790">behcet_isPalindrome</a> (int number)</td></tr>
<tr class="memdesc:a450ea9a46446cb661fc24ea5a5425790"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is a palindrome.  <a href="#a450ea9a46446cb661fc24ea5a5425790">More...</a><br/></td></tr>
<tr class="separator:a450ea9a46446cb661fc24ea5a5425790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae756286298aa1aa4dbfd97c9135091b8"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#ae756286298aa1aa4dbfd97c9135091b8">berkin_isPerfect</a> (int num)</td></tr>
<tr class="memdesc:ae756286298aa1aa4dbfd97c9135091b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is a perfect number(i.e the number is equal to sum of its proper positive divisors)  <a href="#ae756286298aa1aa4dbfd97c9135091b8">More...</a><br/></td></tr>
<tr class="separator:ae756286298aa1aa4dbfd97c9135091b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add92956607f3c9a3cc6da86196fe002b"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#add92956607f3c9a3cc6da86196fe002b">mert_isEven</a> (int num)</td></tr>
<tr class="memdesc:add92956607f3c9a3cc6da86196fe002b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is even.  <a href="#add92956607f3c9a3cc6da86196fe002b">More...</a><br/></td></tr>
<tr class="separator:add92956607f3c9a3cc6da86196fe002b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3636d5ae7a1ad0cb53bd564884b7e28"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#ad3636d5ae7a1ad0cb53bd564884b7e28">yas_isNarcissistic</a> (int num)</td></tr>
<tr class="memdesc:ad3636d5ae7a1ad0cb53bd564884b7e28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is a narcissistic number.  <a href="#ad3636d5ae7a1ad0cb53bd564884b7e28">More...</a><br/></td></tr>
<tr class="separator:ad3636d5ae7a1ad0cb53bd564884b7e28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a54db5e2537f06f7e1f1677b358e1f4"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#a5a54db5e2537f06f7e1f1677b358e1f4">aydan_isOdd</a> (int num)</td></tr>
<tr class="memdesc:a5a54db5e2537f06f7e1f1677b358e1f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the given integer is odd.  <a href="#a5a54db5e2537f06f7e1f1677b358e1f4">More...</a><br/></td></tr>
<tr class="separator:a5a54db5e2537f06f7e1f1677b358e1f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:aecd04697f1a91332cc41a3b6bcb7f35d"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#aecd04697f1a91332cc41a3b6bcb7f35d">powOfDigits</a> (List digits)</td></tr>
<tr class="memdesc:aecd04697f1a91332cc41a3b6bcb7f35d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates sum of each digit raised to power of total number of digits.  <a href="#aecd04697f1a91332cc41a3b6bcb7f35d">More...</a><br/></td></tr>
<tr class="separator:aecd04697f1a91332cc41a3b6bcb7f35d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1c13953383685eb4c7cbb53ab188faa"><td class="memItemLeft" align="right" valign="top">static List&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmain.html#ac1c13953383685eb4c7cbb53ab188faa">listOfDigits</a> (int i)</td></tr>
<tr class="memdesc:ac1c13953383685eb4c7cbb53ab188faa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the given integer to a list of digits.  <a href="#ac1c13953383685eb4c7cbb53ab188faa">More...</a><br/></td></tr>
<tr class="separator:ac1c13953383685eb4c7cbb53ab188faa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Contains functions that check properties of integers. </p>
<dl class="section author"><dt>Author</dt><dd>Ali Can, Aydan, Behçet, Berkin, Elizabeth, Mert, Yasemin </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0 </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a9b8a6c1cd64065f4dba14fc8e096db7f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.alican_isSquare </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>number</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is a perfect square. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>Integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is perfect square, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a5a54db5e2537f06f7e1f1677b358e1f4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.aydan_isOdd </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is odd. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td>Integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is odd, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a450ea9a46446cb661fc24ea5a5425790"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.behcet_isPalindrome </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>number</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is a palindrome. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>Integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is a palindrome, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="ae756286298aa1aa4dbfd97c9135091b8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.berkin_isPerfect </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is a perfect number(i.e the number is equal to sum of its proper positive divisors) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td>Positive integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is a perfect number, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="abd935affcb614f8aff93b02bc714d5cd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.ecr_isPrime </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>number</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is a prime number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>Integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is prime number, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="ac1c13953383685eb4c7cbb53ab188faa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static List main.listOfDigits </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Converts the given integer to a list of digits. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>Integer to represent as a list of digits </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Digits of the input as an array list </dd></dl>

</div>
</div>
<a class="anchor" id="add92956607f3c9a3cc6da86196fe002b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.mert_isEven </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is even. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td>Integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is even, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="aecd04697f1a91332cc41a3b6bcb7f35d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double main.powOfDigits </td>
          <td>(</td>
          <td class="paramtype">List&#160;</td>
          <td class="paramname"><em>digits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Calculates sum of each digit raised to power of total number of digits. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">digits</td><td>List of digits of the input integer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Resulting sum </dd></dl>

</div>
</div>
<a class="anchor" id="ad3636d5ae7a1ad0cb53bd564884b7e28"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean main.yas_isNarcissistic </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the given integer is a narcissistic number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td>Integer to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classmain.html#aecd04697f1a91332cc41a3b6bcb7f35d" title="Calculates sum of each digit raised to power of total number of digits.">powOfDigits()</a> </dd>
<dd>
<a class="el" href="classmain.html#ac1c13953383685eb4c7cbb53ab188faa" title="Converts the given integer to a list of digits.">listOfDigits()</a> </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>True if input is a narcissistic number, false otherwise </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Users/ev/cmpe352svn/main.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun May 19 2013 00:12:56 for Integer Properties by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
